package com.cljh.service;

import com.cljh.bean.Sale;
import com.cljh.bean.SaleTable;
import com.cljh.controller.page.PageBean;
import com.cljh.controller.page.ProductPageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SaleService {
    PageBean<SaleTable> selectAllByCondition(Integer begin, Integer size, SaleTable saleTable);


    boolean deleteId(Integer id);


    boolean upd(SaleTable saleTable);

    boolean deleteAll(@Param("ids") List<Integer> ids);

    SaleTable selectBySaleId(Integer id);

    List<SaleTable> selectAll();

    List<Sale> selectSale();

    List<Sale> selectAllSales(String types);

    List<SaleTable> selectByUsername(String username);


    boolean saveSaleTable(SaleTable saleTable, List<ProductPageBean> sales, Integer userId);
}
